Extension: templateFactory fixed if no arguments