Fixed warnings from serializer