fix session registration