Issue #5096: fixed animation

Issue #5096: fixed animation