Fix dependency computation