compat: Fix attribute name for hosts.