localstorage bug fixed