Setting preference to clear fields on hide causes form to freeze