Fix almost all card bugs.