fix for equipmentfactory (actual fix this time!)