Fixed service registration issue.