Issue #1851: Fixed a bug about Armature loop

Fixed a bug about Armature loop