fix disastrous bug which could end up with duplicate IDs on schematron rules