Fixed compilation problems on Controller.