Fixes rendering issue with short highlights.