fix warnings and errors in bibliography