Fix in the max stack excedeed