fixed codegen for anonym method if owner is static