fixed press back to exit doesn't reset