fixed: updateRecord bugs