Fixed bug where using else erases the environment