fix cwruntime class method code