fix: handling zero match case