fix API serializer issue