fix bug with shm win usage