fix card error