fixing zk error due to complete jobs is not properly handled