FlashLight: fix NameError exception