Fix up editing of text modules