Solve strange restart for func's array cannot defined too large