fix template variable problem.