[flash] fix for #238 part II