fixed index logged in