Fixed crash when not logged in