last card bug fix