fix some problems on links