fix a bug on link