bugfix in controller event dispatching.