Fixed issue that calculate time clapse not correctly.