fix find breakpoint function