fix #882

Hotfix for epub generation (merge conflict which I didn't pay attention I guess).