Fix an exception when importing.