fix session controller