added tab_buffer_termination patch