fixed bugs in book fetching
before merge