Could you post a cap without "external" plugs like magicam?
Without being able to look at your cap, here's a thought or two. Most of the times when values seem to be missing in the array, one tried to store them at indices that doesn't exist (e.g Array(-1), or, if the size of the array is 10, any index above 10)
You don't get any error message then, it is just silently ignored.
Such wrong indices might be due to twisted numbers, calling x with y or the like.
Make sure, the size of the array is big enough, you don't call any index below 1 and that there are no twisted numbers.