fix session caching