Only_primary_association flag not working as expected

Hi,

I am using this method:
List deals associated with an organization

There is a flag only_primary_association which is expected to return only deals that are connected to that organization ID.

However, I am getting deals that are connected to the organization through the person.

I am expecting to see only deals that are connected to the specified organization when the flag is set to 1.