fix label counts for patches