I'm going to thank the correct person
Why do you want to thank the correct person?
I'm very happy with their spontaneous help.
It is good that you want to find and thank the right person. It is good to thank others who help you out.
That's what I was thinking when I told you that.
That is good that you gave the right person recognition.   They will appreciate it and want to keep doing good.