bugfixed

bug fixed in the updateRecord