session index fix