liny: fixed smart-match