Piercing rifle glitch

I have the piercing rifle and ammo, made sure both my characters with the rifle had ammo in the weapon and in inventory. Started the mission and both rifles had no ammo loaded. So I reloaded and they still had no ammo.

It’s bug, before mission unequip those rifles, put them in global stash, and equip them again, it fixes the bug.

Thanks for the tip