Modded guns show mod's ammo instead of own

I modded a long ranger with underslung shotgun and fully loaded it. In sidebar it shows as (7+2), but in other displays (inventory) it only shows as (2).
This happens regardless of weapon’s current mode.

_<

Thanks for reporting.