Fixed a bug was loging off user who were still online.