Control the stack overflow in the object