Community structure bugfix