id wasn't being maintained in resubmitJob function. line 179 contains the fix thanks to tysonjh in #scala on freenode