fix session update issue