Fix for open remote file.