Fix bugs in importing XML feed.