FIXED: out of array bounds read/write.