Fixed the flash storage ovewrite issue