fix card bug