Counter bug repaired