When words sound different in isolation vs. in a sentence, look up the pronunciation first in a dictionary, then use https://youglish.com
https://youglish.com/pronounce/on%20top%20of%20that/english?