fixed incorrect indexing of gt bibids, fixes #512