Fixes bug where proto dependencies are not recorded properly.