Fix buffer unmatched