Fix environment always showing.