Wrong variable name used in move/copy index.