kill smem_size, and fix typo.