Reset button works correctly