Fix dependency generation