fix bug in local storage get