Fix bug when keyIndex is used with remapColumns. We replace the index with name and use it in as id hen set.