Fix error in hosts-tab

(cherry picked from commit 0e706cf293712610f632b14a91bdda02e7b90116)