fix counter as tuple error