added nil check to prevent crash in game_ammo (but real source of nils was not identified)