fix classloader problem for method call templates