Fixed a bug where index of inner loop is same as outter loop