Animation duration fix