fix bug: elapsed time