fix service detection