fix env variable assignment