count object fix