counter fixes