fix branch expectation