fix card size calculation. closes #77