correct a bug in link function
Merge pull request #14 from sawyerlin/master

correct a bug in link function