Update localStorage methods behavior