fix a bug

change the logout function