Bad Debt Expense problem (FAR)

Hi, Page F4-15. I understand how they got to the solution but not why on the journal entry adjustment for $1000. it seems to be decreasing the "allowance for uncollectible accts" and "bad debt expense". I don't understand why. Does the uncollectible accts have to be 20,500 no matter what for ending balance? If someone could explain it to me, I would be delighted. (if they explain it in lectures, im sorry I dont have them...if anyone would like to share where i can get lectures please let me know! thanks) Thank you!