Fix safari / iOS8 animation bug