Fix #423 use the right input namewhen importing an XML file