Fixed issue in timer reported by Sonar.