Fixed missing lastDelta error.