Fix dependency loading