Fix ebook generation