sync bug fix