Bug fix with template actions and modes.

The mode should default to * so if not defined, your template actions
always run.  It was defaulted to "default."