Fixed time calculation bug in playhead