fixed service getBean function