fix native shm buffer lookup