Fixed animation issue on iOS 5