fix handling of externals (which are bib)