Hotfix for $template