fix check for external avro