minor fix for env loading