fix stray global, refs #15097
(cherry picked from commit 45637a1860c3cbc5e462511aa8fd94e58fc3ffbf)
fix ref to undefined "evt", refs #16323
(cherry picked from commit f1878c88cc3ec71155c9447bee29587886628568)