hot fix for _generate when the new value is replacing an old value that was undefined