Fixed a bug in link_list