fixed session serialization