Fix the dependency tracing.

Change-Id: Iadff12f1d389c05dbb4bd33fc8c90155fba3cadf