Parser: move buffer clearing after 'other' event