fix tracking logic: update previous, reset current