fix a bug in hosts.tpl, notifications for all