Fixed sequence problem with environment setup.