Bug fix in joinjob.py