bug fix calculation reset timer