improve flash fix