fixed highlight skipping bug