fix: max Callstack size exceed when calling run + file mode