Fixed a crash when importing data with weird headers.