Fix the function that update DependencyInjection file