fix some bugs in books app