Corrected a bug where empty non-leaf children caused misalignment in lower levels