Fix localStorage fetch bug