Fixed error when element acc_name is None. Fixed infinite loop when parent have child link on himself.
Merge branch 'hotfix/Bugfix'