Fix counter insertion.