These are to be reported as rollovers, not new contributions. Delete any entry you made under Deductions & Credits regarding this.
Delete and reenter the Form 1099-R. In the questions that follow you must indicate that none of the distribution was RMD, than you moved the money to another retirement account or returned it to the same account, then indicate that amount that you rolled over.