Issue #1851: Fixed a bug about Armature loop