Fix adding multiple dependencies.