fix vizd crash because of invalid access