Fixed up the updateEnvironment fix. Back to working again.