fix materialize_curr_ptr
Merge branch 'release/4.6'