! Proper fix for improper closure (fixes #2412)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>