fixed error when user quits and the server restarts