Fixed odd behavior when PreRendered html is shown