fix bug in shm locker