That’s what I thought and that’s what your problem is. You need to change those, but you should read the documentation very carefully before you do that. This means the link I posted and any related links until you’re absolutely sure of what you’re doing.
I may be wrong, but I suspect that you could mess up quite badly unless you follow the rules to the letter. The reason I say this is because you are, in effect, changing the location of your site. OK, you and I know that the new address is actually the same as the old one, but WP may not.
If I’m wrong, and it’s simply a matter of changing the values and saving them, then I apologise for causing alarm; but I always believe it’s better to be safe than sorry in these matters.
HTH
PAE