fixed 'delete' method of card model