Fixed a bug with signout