Fix bug with iterations used as jobs amount