fix check same community ID logic