fixed a bug where users quitting would not be recorded correctly