Fix for bad array detection.