fixed an issue with env and presenting errors