fix template engine call