update data, fix query error