fixed issue with logging errors when assigning parent