Use the correct value to dereference an array