Fix a form reset issue