fix localstorage dependencies