fixed negative index counter some more