fixed bug with service injection not initializing