fix for yaml serializer