Fixed rendering of inner templates