prevent loop after first error