fix EnvironmetActivity crash bug