Fixed bugs related with updateHost, updateSwitch, updateLink