Fix the branch reading