_weaponSelected = "arifle_MSBS65_GL_black_F";
_muzzlesList = getArray (configFile >> "CfgWeapons" >> _weaponSelected >> "WeaponSlotsInfo" >> "MuzzleSlot" >> "compatibleItems"); // returns: muzzle_tma_65
_muzzle = selectRandom _muzzleList; // accidentally returns: muzzle_tma_65
player addPrimaryWeaponItem _muzzle; // after this, the error pops up