Deductions & credits

Just got the letter from IRS today saying I need to pay back the Recovery Rebate Credit of $1400. I answered the questions correctly using TurboTax so I'm quite surprised they could screw it up. Why would the program ask me how much I received and then enter a credit I have to pay back with penalty? Good reason not to use Turbox Tax next year.