Fixed setBreakpoint function