fix form reset problem