Avoid stack overflow if load large repository