fix session persistence error.