Fix a typo.

```generate_mmodes``` -> ```generate_modes```