fixed storage bug

fixed storage bug there was an error in the code