debug improves
Fix null deref in RDebug.wait()