fixed localstorage
fixed stop function for localstorage