fix bug: breakpoints may be placed on outer functions rather than inner ones