Fix ambiguous condition check.