Crash fix for cutting from local direcoty to remote directory.