Fix bug setting of setRecord.