fix bug where clicking on cite: gives an error