fix env / replacement