Made the UIView animations work on iOS6