Correctly initialize the isVirtual variable