Fixed a minor bug on logout from admin-page