Updated with a bugfix for array jobs