Fix bug in hosts view with multiple hosts.