patching the vref images was buggy