Small fix for issue #184

Also, it fixes an odd behavior when you're with more than one tab open, if you logout from one and refresh the other it brings the session back.