fixing shmem_get_next