delay counter bug fix