Fixed incorrect arguments to move function