Fixed bug with reset of form