Improve handling of nested compression pointers