corrected extend path in templates