Fix buggy import in templates subproject