Fix an error where .length can't be measured if there are no dependencies