fixing boolean boup in util.cone.belong_seg