fixed reset error in form using this.reset()