xml attributes loading fix