Fixed bug which manifested itself in the text import dialog