Bug fix to serializers.py