typo: "method" to "myMethod"

The field "method" does not exist. However "myMethod" method, yes.