restoring the clear of the potential matches if canceled

Signed-off-by: shalott <shalott@gmail.com>