fix max_errors, max_failures initialization