Fix bug when generating continuous filename.
Fix ebook query.