Debugger: fixed JS error Cannot read property 'right' of undefined