Fixed issue with duplicate values in permission id list.