Fix text templating