Fixed bug deleting new discount card while cell is edited.