Fixed bug in Louvain method.