updated stopwatch, fixing a bug