improved performance while join all members to community (fixes #927)
fix syntax error (fixes #927)