work around bug when setting shmmax