Fix service manager bug.