Fix issues related to missing environments or bad parsing.
Fix issues related to missing environments or bad parsing.