fix for set_max_freq

you missed this line when simplifying the code