fixed 'undefined method job_priority_id_of' error