Fixes a bug in similar links.