fix jobs controller to not worry about nil