fixed lastUpdate, and threshold bug, plug recompute only last