fix session search bugs