Replace missing right shift operators.

Replaced several missing >>0 operators in template files.