fix service running bug