fix template path bug