fixed bugs on service host