Fix service and notification templates.

Fixes #5058