reset state and pos after finish run