Fixing the reset script