fixed incorrect class finding in native code