Fix animation for flags
Update animation for loop