fix elapsed time