Fixed local storage bug