Fixed bug in error detection during import process.