fix path issue to tempalte