flash storage bug fixes