fix session secret error