fixed suspend-and-resume bug when counting up