fix maximumWaitingData handling to allow acknowledgements when the packet already exists