fix remote file completion