also clear flash before sleep