fixes memory issue caused by improperly adding relation in serializer by #05b7b6