fixed fill stack overflow