fixed bug in models/card.py