fixing a parsing bug for import lists