fix a sync bug of wb buffer