Fix a mistake in template document.

order of statement is wrong.