fix crashes for plugin using maxBlockLength during latency compute.