Fix some bugs in XML feed import script.