fix session resource