Fix the value check when a host is given