fixed index when logged in