fix invalid jobs count