Fixed evergrowing stack.