fixed negative index counter