Why is only the first element of the component list checked?