#bug fix : problem write to xml