fix try_calc traceback