fixing flash animations