Fix job array pointer overwrite

See comments in code for explanation