fix environ-var deletion loop