Fixes template content to not contain outer template tag