branch taken bug