fixed an environment lookup copypaste bug