Empty link list when parsing new file