fix link.href not a string error