solve traverse empty shm_set bug