Fix copy/move file api argument bug