fixed remote directory copy.