how to stop "stack overflow" pop up?