Minor fixes (localStorage)