corrected number of loops in animation

fixed timer not being stopped properly