Fixed a bug causing some lines to be merged with prob = 1/buffersize