time counting fix