The effect of the anomalous dispersion on the resonant four wave mixing in ammonia