Fixed underline detection