Fixed service endpoint problem.

Fixed service endpoint problem.