Fixing localStorage