Fix errors in addCommunity()