fix bug of updating the value of sync-input after data sync