fix bugs in breakpoints inside anonymous functions and at edges of the function