correct-errors script cleanup