fixed the duplicate books bug