Fix env configuration