fix shm unmap bug