fixed local storage issues