Fix enum type on animateWithDuration call.