Fix random text insertion