match deletion bug fixed