time count bug fixed