Reset the detected array