bugfix MethodInvoker
_env and . use sample