Fix virtual_z type