fix service registration