removed a bug in ambientdriver.py