Fix input dependent branch update.