Fixed branch errors