updated the animation structure to avoid crash on iOS6