Fixed bug, a job should belongs to a type.