Fix a bug when getting linked sections