API labels with_counts for group labels


I am trying to get the number of open/closed issues for each label in my project via REST API (using excel VBA but that’s irrelevant).
I have a problem that, when I fetch the labels via the


if the label is a group label,
the count fields are returning total number of issues for the label for each projects. I need only the issues for the current project I am fetching from. Is that the bug or there is some setting to set it correctly?

    "open_issues_count": xxx,
    "closed_issues_count": yyy,