Fixed a bug.

It was causing an error when some components were added to a card.