[BUGFIX] Incorrect nesting of rendered content

Fixes #179