Fixed issue with dependenc injection for service layer