fix display of module tree for legacy docs