fixed sample error highlighting