modify environmentActivity invalid code