Fix for bug 1400, some variables not being passed to the branch transfers