Second attempt to fix the supercharged frequency glitch (put a cap on the minimum as well as maximum frequencies)