fix cancel logic of card application