corrected template problem with program env_var