Patch for false detection of array values