preventing double queries on m2m dehydrate