fixing ij exchange