fix regression. bug in controller.py