flash fails in certain instances, this prevents that