fix templates path issue