Fix a crash in the import layout