fix bugs on storage sample