fix to animation example