fixed problems with reset button :)