removing group entity from all script blocks