debug cleanup code for sites assigned to multiple pattern groups