Johnson m1941 incorrect ammo count showing sometimes

Equipped a Johnson m1941 semi auto rifle and was wondering why the rifle sometime wouldn’t shoot despite having some ammo loaded. Each time it’s fixed by reloading. Not sure what triggers this bug.