Fixed card numbers reseting

Card numbers sometimes reset to 1 on new cards prior to this patch