Fixed bug after logout