util: fix bug about bool(v)