Fix minor display bug where incorrect links are highlighted