fixes storage bug