Fixed Logout problem

Fixed #23