Fixed injecting dependencies