fixed bug in gen_farming_job.py