fix in deselecting environment in SSA