fixed wrapper localstorage sync bug