Data disappeared after making changes to the form