Quick fix (without tests :cry:) for edge case when flash is nil