Fix divisor counter bug