Make sure the scope is set for all dependencies