fixed a method name caching issue.