Workaround for out of bound crashes with viz_array