correct error in xml, typeinfo and initialization.