fix bug with currentTime