Fixed local counters to use j instead of i, because that is used in the outer scope
Fixed local counters to use j instead of i, because that is used in the outer scope

madsbk/bohrium,madsbk/bohrium,bh107/bohrium,madsbk/bohrium,madsbk/bohrium,bh107/bohrium,bh107/bohrium,bh107/bohrium