Fixing issue of secondary keys getting dropped when using UpdateRecord().