fixed a reset form bug