fix the bug created by commit 1814ee7bf419dff1fc6ac38888c1ba569da03463. Virtual wuclass now works.