Fixed modulation frequency bug