fix looks_like_logical