Fixed a bug in the automated logout/session expire system