fix connection check.fix service bug.