Fixed branching

It really does process only one branch now!