fixed issues in bib id code