Correction of small bug that changed the order of transmissions in the
presence of buffers
added new version