fix session sleep