Fixed a bug after removing link section