Fix dependency check