Fixing bug on reset button