Fix branchTo code motion