Fix duration for animations with count = 1