Fix incorrect templating