Fix logic error for request_name_lookup.