Minor fix to move function.