Revert "Fix ptr ref"

This reverts commit 8fdee4bef14ef08562f45b8d34201f852d02ed0d.