Fix some compiler error in Connection2.