Fix the session serializer