Bug fix: brannch target calculation was still wrong