Fixed problem with duplicate ids in epub.