fix link redirect bug