fixed crash when opening home page when logged in