How do I solve this infinite loop problem?

Mark it as solved.