Global Counter overflow fix.