Fixed bug in XML deleteion.