read card bug fix