build: fix template build issue