Fixed issue #17 with animations on iOS 8