fixed logged out bug