fix the link handler