Fix min and max freq (thanks cocafe :D)