Fix daemon mode in template