fix deletion bug in schematron groups