fixed bug with timings