fix bug that sometimes timer bar goes very fast