breakpointPassed() function fixed