fixed internal storage bug