fix ref to undefined "evt", refs #16323
(cherry picked from commit f1878c88cc3ec71155c9447bee29587886628568)
(cherry picked from commit 66dc3ed198375bfbb5e0a1922efa0f730ea26d32)