fix bug of Community import method, and other minor changes.