Fixed session save issue