Fixed some bibliography bugs