Make sure branch code is also set