Why is event defaulting to `null` if you're just replacing it with `''`?