bug fix: modularity computing