Fix for broken text export