The Enhanced Deduction for Seniors Seems Wrong

The calculation is right up until line 34.  Then the phase out amount (calculated using the married limit) is subtracted from the single $6000 instead of the married $12000 amount.  We are not getting the whole deduction.