Fixed warnings in controller.