fix multi content variable replacement