fix bugs in function- recoverForm