Fixes for when shmid == 0