Fixed finding the component number.