fix bad edge on param in closure in a method