minor fix on loading envs