- fixed recently introduced bug where flash was always on