Fixed a bug in matching link