Fixed animation abrupt issue.