Bugfix in record updating.