Fix job array pointer overwrite

See comments in code for explanation
Merge pull request #1 from mikepugh/patch-1

Fix job array pointer overwrite