fixed mn -> nm indexes