a bug fixed in removing localstorage