Jobs done counter was updated in the wrong place