fixed a bug when validating xml cifiguration files