fixed bug when reset button is clicled not clean valid class