Bugfix for wrapped elements
Set initial remplate in rendering context