Fixed an issue where writing a remote file would not always work