Fixing use of uninitialized array.