fix environmental variables