Since the while loop is not closed in the instance I assume it might be an similar issue to this one: