Fixed a bug in localStorage client