Bug fix in card_interface.