fixed buildraw_json