Clear domain settings before opening a file. https://redmine.stoutner.com/issues/554