fixed local storage overwrite issue