fixing correctErrors function

* Splicing in corrected segment into message.