Fixed an issue with louvain when saving the Q values