fixes bug in serializers.py