fix session save correctly storage