Fixing branches count