doc-gen bugfix