Total Refund Amount

I have an amount due for my Federal return of $345. I have a state tax refund coming for $680.  The Your Total Refund amount on the "You're almost ready to file" page. shows $335.  Why? That is the difference between what I'm getting from state and paying federal, it is not the refund amount I should be getting.