Fix for creating remote files.