Form stuck in restore mode