fix messed up branch pointer