fixing Card.serialize