Fix max when lots of tasks are in ZK