fix shmem.c