Reset button now works correctly