Degree of self-sufficiency over 100%..how?

I'm having a problem with my Home Assistant where the energy balance shows self-sufficiency of over 100%.

In addition, some values are shown as negative even though the actual entities are positive.

Everything was working fine with the same configuration until a few updates ago. What has changed?