fixed null pointer on mngr logout