Fixed local storage loading bug