fix storage flush