Fix card loading bug