Fix bug in text-import-dialog