correct a bug for cards