fix dispersion analysis