Fix frequency parsing.