Fixed method call in template