Fixed template issue

Thanks to Karl for the tip