corrected gem debugger