fix shmem_init