fixed indexing hack with session page