fixed link and unlink not updating i_links_count