fixes out of memory error with getRelatedRestrictions()