card: fix compile warning