fix deprecated variable notation in template