fix issue in shmdata reader