fixed the json upload problem