fix some warnings when highlighting links