Fixed missing resetByteCounter()