fixing bugs

debugger problem with breakpoint