Fix some problems with connectService