Fixed branching error