fix some bugs of BookStore