Fixed the bug that was causing the size in subdirs to be undef