Fixed Logout problem

Fixed #23
Merge pull request #25 from Xety/issue-23

Fixed Logout problem