fix bug in templates path