Stable rational harmonic mode-locked pulses with a repetition rate of 40 GHz were generated from an Er-doped fiber laser with a semiconductor optical amplifier in the cavity. By tuning the current of the semiconductor optical amplifier, significantly improved rational harmonic mode-locked pulses were obtained and the supermode noise in the RF spectrum of mode locked laser was reduced for certain current range of the semiconductor optical amplifier.