Fix avahi implementation