Fixing the bug of the sum, when cards stacked