fixed a bug when admin log out