Fix for parents() loop when looking up objectName