fix storage in production mode