Bugfix when adding XML-file.