Bugfixes for unlimited max_batch in jobtypes