fix error for properties passed to serializer function