Fix HostsLocked switch, closes #8