fix very strange bug in serializers that I don't understand