Qualified Dividends and Capital Gain Worksheet not calculating properly?

When I look at the Qualified Dividends and Capital Gain worksheet, I see that TT is subtracting Line 5 ($0) from Line 4 ($5,313) and calculating a POSITIVE $5,313 instead of NEGATIVE $5,313.  Thus Line 6 should be $0?  Correct?  Instead of $5,313?  Please see attached screenshot.