bug when save to xml solved