bug fix and update card apply empty