fixing card bug