Fixing up parent pointer logic.