fix some bugs of jobtracker