fixed a small bug in implementation of env parametre