Fix handleAcknowledgement packet ID generation