Retirement tax questions

"snowbug, it sounds like in your case everything was handled entirely properly.  The Form 1099-R is correct.  Apparently the repayment that you did indeed was a rollover and you were issued a new loan; the loan that you have now is not the loan that you originally had.  Simply report the Form 1099-R in TurboTax as a distribution that was entirely rolled over."

 

What I don't understand is why the taxable amount (equals to the remaining balance on the loan before it was fully paid off). Because of this, when I enter it into TurboTax, there is tax assessed. - How do I avoid this tax?

 

From looking at the account history, technically, the same employer admin just re-instated the account and allowed the repayment so it didn't create a new loan. The money went back into the same 401k account where the loan took from. 

 

Thanks for the helps!