Fix bug when a user disconnected and had not logged in