WriteOIIO: fix obvious crash