Fixed AngularJS controller.