Fixed typo in recent fix to modularity.py