fixed storage bug