fix unexpected error log traceback