Fixed counter error