Fixed bug in serializers