fixed the multiple resonant values with the same m