fix traceback when panic