fix macro text insertion