fix storage bug