Fixed a card-rendering bug and an editmode bug