Fixed line highlight outofbounds exception