fix an issue with updating records