fixed numbering issues in text and bibliography