Correct reference to flattenPointer