Fixed bug in environment switching