fixxed bugs with CollectionsIDRestriction