Fix sign out bug