Fixed the missed character at the end of the buffer