fixed remaining bugs in traceback