Hello,
This is probably because of your FFT settings. If you set the base frequency (f) as 50 Hz, then to see a harmonic at 50 kHz, you need to set the number of Fourier coefficients (N) to at least a 1000 or higher. Please see the attached example.
Regards,
Manu