correctly locate multiple errors