Fixed WeaponFactory bug