Fix createRenderedContents()