fix the double loading problem of json and xml data