fix environment vars