fix discarded cards error