small bug fix on autolink detect