fix ghost-ref if vio is used