Fixed bug in job controller.